﻿using WorkItemAnalyser.Core.Assertions;

namespace WorkItemAnalyser.Core
{
    public class Rule
    {
        private readonly Query query;
        private readonly IAssertion assertion;

        public Rule(Query query, IAssertion assertion)
        {
            this.query = query;
            this.assertion = assertion;
        }

        public Query Query
        {
            get { return query; }
        }

        public IAssertion Assertion
        {
            get { return assertion; }
        }
    }
}